package com.ruoyi.mytool.service.impl;

import com.ruoyi.mytool.mapper.MovieMapper;
import com.ruoyi.mytool.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class movieServiceImpl implements MovieService {

    @Autowired
    MovieMapper movieMapper;
    @Override
    public void queryAllMovie() {
        List<String> movies = movieMapper.queryAllMovie();
        movies.stream().forEach(movie -> System.out.println(movie));

    }
}
